/**
 * 
 */
package com.acc.softmgr.business.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.acc.softmgr.business.dao.SoftmgrProjectMapper;
import com.acc.softmgr.business.model.SoftmgrProject;
import com.acc.softmgr.business.model.SoftmgrProjectExample;
import com.acc.softmgr.business.service.ISoftmgrProjectService;

/**
 * 
 * @content
 * 
 * @date 2017年5月8日
 * 
 * @author OprCalf
 * 
 */
@Service
public class SoftmgrProjectServiceImpl implements ISoftmgrProjectService {

	@Autowired
	private SoftmgrProjectMapper softmgrProject;

	@Override
	public long countByExample(SoftmgrProjectExample example) {
		return softmgrProject.countByExample(example);
	}

	@Override
	public int deleteByExample(SoftmgrProjectExample example) {
		return softmgrProject.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return softmgrProject.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(SoftmgrProject record) {
		return softmgrProject.insert(record);
	}

	@Override
	public int insertSelective(SoftmgrProject record) {
		return softmgrProject.insertSelective(record);
	}

	@Override
	public int insertList(List<SoftmgrProject> records) {
		for (SoftmgrProject record : records) {
			insert(record);
		}
		return 1;
	}

	@Override
	public List<SoftmgrProject> selectByExample(SoftmgrProjectExample example) {
		return softmgrProject.selectByExample(example);
	}

	@Override
	public SoftmgrProject selectByPrimaryKey(Integer id) {
		return softmgrProject.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(SoftmgrProject record, SoftmgrProjectExample example) {
		return softmgrProject.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(SoftmgrProject record, SoftmgrProjectExample example) {
		return softmgrProject.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(SoftmgrProject record) {
		return softmgrProject.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(SoftmgrProject record) {
		return softmgrProject.updateByPrimaryKey(record);
	}

}
